//
//  GameScoreViewController.m
//  Checkers2015
//
//  Created by Dmitry Tatarinov on 2/17/15.
//  Copyright (c) 2015 Huly-Gun Soft. All rights reserved.
//

#import "GameScoreViewController.h"
#import "vars.h"
//#import "game_const.h"

@interface GameScoreViewController ()

@end

@implementation GameScoreViewController
@synthesize delegate;

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    UIButton *backBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    [backBtn setTitle:@"MENU" forState:UIControlStateNormal];
    [backBtn setFrame:CGRectMake(8, 8, 128, 48)];
    [backBtn addTarget:self action:@selector(backToMain) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:backBtn];
    
    /*
    UIButton *nextBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    [nextBtn setTitle:@"Next" forState:UIControlStateNormal];
    [nextBtn setFrame:CGRectMake(self.view.frame.size.width - 8 - 128, 8, 128, 48)];
    [nextBtn addTarget:self action:@selector(nextLevel) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:nextBtn];
    */
}

- (void)backToMain
{
    //[delegate loadMainView];
    //[delegate unloadGame];
    [self dismissViewControllerAnimated:false completion:nil];
    [delegate loadLevelSelect];
}

- (void)nextLevel
{
    NSLog(@"next");
    
 //   [delegate startGame];
    [self dismissViewControllerAnimated:false completion:nil];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
